//
//  ViewController.m
//  SCXCalendar
//
//  Created by 桑赐相 on 2017/12/13.
//  Copyright © 2017年 桑赐相. All rights reserved.
//

#import "ViewController.h"
#import "CalendarView.h"
#import "YXDateHelpObject.h"
#import "CalendarDayModel.h"
@interface ViewController ()
@property (nonatomic,strong) CalendarView *calendarView;
@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    CGFloat w = self.view.frame.size.width / 7;
    self.calendarView = [[CalendarView alloc]initWithFrame:CGRectMake(0,20, self.view.frame.size.width,w * 6+ 80)];
    [self.view addSubview:self.calendarView];
    NSLog(@"%@",self.calendarView.selectedDate);

}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
